-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove jQuery ready
usage
#23858
Remove jQuery ready
usage
#23858
Conversation
I guess we do not need Because the HTML code looks like this:
When So, how about making code just call every init function directly in |
Are you 100% certain that |
99.9999% sure.
It doesn't matter, there won't be any new content, because this
In fact, we already have a lot of code operating the DOM directly without DOM ready, for example, the "Clone" / "DiffView" inline I think it's safe to simplify the code in 1.20, we have enough time to eat our own dogfood. |
Ok, then let's try it. If there are regressions, we should be able to notice in time. |
Hmm .... it's caused by Tricky .... I have a feeling that it's not So to keep things simple, let's keep the |
Yeah. PR is ready as-is. |
🤖 🎺 |
* upstream/main: [skip ci] Updated translations via Crowdin Update JS deps (go-gitea#23853) Added close/open button to details page of milestone (go-gitea#23877) Check `IsActionsToken` for LFS authentication (go-gitea#23841) Prefill input values in oauth settings as intended (go-gitea#23829) Display image size for multiarch container images (go-gitea#23821) Use clippie module to copy to clipboard (go-gitea#23801) Remove assertion debug code for show/hide refactoring (go-gitea#23576) [skip ci] Updated translations via Crowdin Remove jQuery ready usage (go-gitea#23858) Fix JS error when changing PR's target branch (go-gitea#23862) Improve action log display with control chars (go-gitea#23820) Fix review conversation reply (go-gitea#23846) Improve home page template, fix Sort dropdown menu flash (go-gitea#23856) Make first section on home page full width (go-gitea#23854) [skip ci] Updated translations via Crowdin Fix incorrect CORS failure detection logic (go-gitea#23844)
Replace it with equal function of our own and enable the eslint rule to forbid future usage.